package sbp.dao;

import java.util.List;

import org.hibernate.Session;

import sbp.modelos.Informacao;

public class InformacaoDAO extends DAO<Informacao> {

	private Session session;
	
	public InformacaoDAO(Session session) {
		super(session, Informacao.class);
	}
	
	@SuppressWarnings("unchecked")
	public List<Informacao> listar() {
		return this.session.createCriteria(Informacao.class).list();
	}

	public void setSession(Session session) {
		this.session = session;
	}
	
	

}
